export function getFiles(path, isDeep = false) {
    console.log(path);
    const allComponents = require.context(path, isDeep, /.vue$/);
    let resComponents = {};
    allComponents.keys().forEach((fileName) => {
        let comp = allComponents(fileName);
        const a = fileName.replace(/^\.\/(.*)\.\w+$/, "$1");
        resComponents[a.split("/")[1]] = comp.default;
    });
    return allComponents
}